3.372 \(\int \frac {\log (c (d+e x^n)^p)}{x (f+g x^{-n})} \, dx\)

Optimal. Leaf size=70 \[ \frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (f x^n+g\right )}{d f-e g}\right )}{f n}+\frac {p \text {Li}_2\left (\frac {f \left (e x^n+d\right )}{d f-e g}\right )}{f n} \]

[Out]

ln(c*(d+e*x^n)^p)*ln(-e*(g+f*x^n)/(d*f-e*g))/f/n+p*polylog(2,f*(d+e*x^n)/(d*f-e*g))/f/n

________________________________________________________________________________________

Rubi [A]  time = 0.16, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2475, 2412, 2394, 2393, 2391} \[ \frac {p \text {PolyLog}\left (2,\frac {f \left (d+e x^n\right )}{d f-e g}\right )}{f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (f x^n+g\right )}{d f-e g}\right )}{f n} \]

Antiderivative was successfully verified.

[In]

Int[Log[c*(d + e*x^n)^p]/(x*(f + g/x^n)),x]

[Out]

(Log[c*(d + e*x^n)^p]*Log[-((e*(g + f*x^n))/(d*f - e*g))])/(f*n) + (p*PolyLog[2, (f*(d + e*x^n))/(d*f - e*g)])
/(f*n)

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2412

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)/(x_))^(q_.)*(x_)^(m_.), x_Symbol]
 :> Int[(g + f*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q}, x] && EqQ[m,
q] && IntegerQ[q]

Rule 2475

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_) + (g_.)*(x_)^(s_))^(r_.),
 x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(f + g*x^(s/n))^r*(a + b*Log[c*(d + e*x)^p])^q,
x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q, r, s}, x] && IntegerQ[r] && IntegerQ[s/n] && Intege
rQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int \frac {\log \left (c \left (d+e x^n\right )^p\right )}{x \left (f+g x^{-n}\right )} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\left (f+\frac {g}{x}\right ) x} \, dx,x,x^n\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{g+f x} \, dx,x,x^n\right )}{n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (g+f x^n\right )}{d f-e g}\right )}{f n}-\frac {(e p) \operatorname {Subst}\left (\int \frac {\log \left (\frac {e (g+f x)}{-d f+e g}\right )}{d+e x} \, dx,x,x^n\right )}{f n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (g+f x^n\right )}{d f-e g}\right )}{f n}-\frac {p \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {f x}{-d f+e g}\right )}{x} \, dx,x,d+e x^n\right )}{f n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (g+f x^n\right )}{d f-e g}\right )}{f n}+\frac {p \text {Li}_2\left (\frac {f \left (d+e x^n\right )}{d f-e g}\right )}{f n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 64, normalized size = 0.91 \[ \frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (f x^n+g\right )}{e g-d f}\right )+p \text {Li}_2\left (\frac {f \left (e x^n+d\right )}{d f-e g}\right )}{f n} \]

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(d + e*x^n)^p]/(x*(f + g/x^n)),x]

[Out]

(Log[c*(d + e*x^n)^p]*Log[(e*(g + f*x^n))/(-(d*f) + e*g)] + p*PolyLog[2, (f*(d + e*x^n))/(d*f - e*g)])/(f*n)

________________________________________________________________________________________

fricas [F]  time = 0.44, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {x^{n} \log \left ({\left (e x^{n} + d\right )}^{p} c\right )}{f x x^{n} + g x}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e*x^n)^p)/x/(f+g/(x^n)),x, algorithm="fricas")

[Out]

integral(x^n*log((e*x^n + d)^p*c)/(f*x*x^n + g*x), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log \left ({\left (e x^{n} + d\right )}^{p} c\right )}{{\left (f + \frac {g}{x^{n}}\right )} x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e*x^n)^p)/x/(f+g/(x^n)),x, algorithm="giac")

[Out]

integrate(log((e*x^n + d)^p*c)/((f + g/x^n)*x), x)

________________________________________________________________________________________

maple [C]  time = 0.60, size = 298, normalized size = 4.26 \[ -\frac {i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{n}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{n}+d \right )^{p}\right ) \ln \left (f \,x^{n}+g \right )}{2 f n}+\frac {i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{n}+d \right )^{p}\right )^{2} \ln \left (f \,x^{n}+g \right )}{2 f n}+\frac {i \pi \,\mathrm {csgn}\left (i \left (e \,x^{n}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{n}+d \right )^{p}\right )^{2} \ln \left (f \,x^{n}+g \right )}{2 f n}-\frac {i \pi \mathrm {csgn}\left (i c \left (e \,x^{n}+d \right )^{p}\right )^{3} \ln \left (f \,x^{n}+g \right )}{2 f n}-\frac {p \ln \left (\frac {d f -e g +\left (f \,x^{n}+g \right ) e}{d f -e g}\right ) \ln \left (f \,x^{n}+g \right )}{f n}-\frac {p \dilog \left (\frac {d f -e g +\left (f \,x^{n}+g \right ) e}{d f -e g}\right )}{f n}+\frac {\ln \relax (c ) \ln \left (f \,x^{n}+g \right )}{f n}+\frac {\ln \left (\left (e \,x^{n}+d \right )^{p}\right ) \ln \left (f \,x^{n}+g \right )}{f n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(e*x^n+d)^p)/x/(f+g/(x^n)),x)

[Out]

1/n*ln(g+f*x^n)/f*ln((e*x^n+d)^p)-1/n/f*p*dilog(((g+f*x^n)*e+d*f-e*g)/(d*f-e*g))-1/n/f*p*ln(g+f*x^n)*ln(((g+f*
x^n)*e+d*f-e*g)/(d*f-e*g))+1/2*I/n*ln(g+f*x^n)/f*Pi*csgn(I*(e*x^n+d)^p)*csgn(I*c*(e*x^n+d)^p)^2-1/2*I/n*ln(g+f
*x^n)/f*Pi*csgn(I*(e*x^n+d)^p)*csgn(I*c*(e*x^n+d)^p)*csgn(I*c)-1/2*I/n*ln(g+f*x^n)/f*Pi*csgn(I*c*(e*x^n+d)^p)^
3+1/2*I/n*ln(g+f*x^n)/f*Pi*csgn(I*c*(e*x^n+d)^p)^2*csgn(I*c)+1/n*ln(g+f*x^n)/f*ln(c)

________________________________________________________________________________________

maxima [A]  time = 0.86, size = 112, normalized size = 1.60 \[ {\left (\frac {\log \left (f + \frac {g}{x^{n}}\right )}{f n} - \frac {\log \left (\frac {1}{x^{n}}\right )}{f n}\right )} \log \left ({\left (e x^{n} + d\right )}^{p} c\right ) - \frac {{\left (\log \left (f x^{n} + g\right ) \log \left (\frac {e f x^{n} + e g}{d f - e g} + 1\right ) + {\rm Li}_2\left (-\frac {e f x^{n} + e g}{d f - e g}\right )\right )} p}{f n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e*x^n)^p)/x/(f+g/(x^n)),x, algorithm="maxima")

[Out]

(log(f + g/x^n)/(f*n) - log(1/(x^n))/(f*n))*log((e*x^n + d)^p*c) - (log(f*x^n + g)*log((e*f*x^n + e*g)/(d*f -
e*g) + 1) + dilog(-(e*f*x^n + e*g)/(d*f - e*g)))*p/(f*n)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\ln \left (c\,{\left (d+e\,x^n\right )}^p\right )}{x\,\left (f+\frac {g}{x^n}\right )} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(d + e*x^n)^p)/(x*(f + g/x^n)),x)

[Out]

int(log(c*(d + e*x^n)^p)/(x*(f + g/x^n)), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: HeuristicGCDFailed} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(d+e*x**n)**p)/x/(f+g/(x**n)),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________